package znbkTestPaperCtfd.entity;

import com.google.gson.Gson;

import java.util.List;

/**
 * Created by Administrator on 2018\3\7 0007.
 */

public class WrongTopicTutoringModel {

    public  static Gson gson;

    /**
     * QuesID : CCAE08070DHE10V00Y2
     * SubjectID : C
     * StuAnswer : [{"ChildIndex":1,"SubChildList":[{"StuAssess":"","SubChildIndex":1,"StuAnswer":"A","UploadPath":""}]},{"ChildIndex":2,"SubChildList":[{"StuAssess":"","SubChildIndex":1,"StuAnswer":"B","UploadPath":""}]},{"ChildIndex":3,"SubChildList":[{"StuAssess":"","SubChildIndex":1,"StuAnswer":"C","UploadPath":""}]}]
     * ItemFrom : 0
     * CreateTime : 2018-3-2 14:06:20
     * StuID : zxstu8
     * StageNo : C
     * StuName : 朱小玲
     */

    public static WrongTopicTutoringModelEntity getWrongTopicTutoringModelJson(
     String QuesID,
     String SubjectID,
     int ItemFrom,
     String CreateTime,
     String StuID,
     String StageNo,
     String StuName,
     List<WrongTopicTutoringModelEntity.StuAnswerBean> StuAnswer){

        WrongTopicTutoringModelEntity mWrongTopicTutoringModelEntity = new WrongTopicTutoringModelEntity();
        mWrongTopicTutoringModelEntity.setQuesID(QuesID);
        mWrongTopicTutoringModelEntity.setStuID(StuID);
        mWrongTopicTutoringModelEntity.setStuName(StuName);
        mWrongTopicTutoringModelEntity.setSubjectID(SubjectID);
        mWrongTopicTutoringModelEntity.setStageNo(StageNo);
        mWrongTopicTutoringModelEntity.setItemFrom(ItemFrom);
        mWrongTopicTutoringModelEntity.setCreateTime(CreateTime);
        mWrongTopicTutoringModelEntity.setStuAnswer(StuAnswer);

        gson = new Gson();
        return mWrongTopicTutoringModelEntity;
    }


    public static WrongTopicTutoringModelEntity.StuAnswerBean getStuAnswerBean(
            int ChildIndex,
            List<WrongTopicTutoringModelEntity.StuAnswerBean.SubChildListBean> SubChildList){

        WrongTopicTutoringModelEntity.StuAnswerBean mStuAnswerBean = new WrongTopicTutoringModelEntity.StuAnswerBean();
        mStuAnswerBean.setChildIndex(ChildIndex);
        mStuAnswerBean.setSubChildList(SubChildList);

        gson = new Gson();
        return mStuAnswerBean;
    }

    public static WrongTopicTutoringModelEntity.StuAnswerBean.SubChildListBean getSubChildListBean(
            String StuAssess,
            int SubChildIndex,
            String StuAnswer,
            String UploadPath){

        WrongTopicTutoringModelEntity.StuAnswerBean.SubChildListBean mSubChildListBean = new WrongTopicTutoringModelEntity.StuAnswerBean.SubChildListBean();
        mSubChildListBean.setStuAssess(StuAssess);
        mSubChildListBean.setSubChildIndex(SubChildIndex);
        mSubChildListBean.setStuAnswer(StuAnswer);
        mSubChildListBean.setUploadPath(UploadPath);

        gson = new Gson();
        return mSubChildListBean;
    }


}
